Skip to content

Load Drush Symfony compatibility classes - #1070

Closed
RobLoach wants to merge 2 commits into
mglaman:mainfrom
RobLoach:drush-symfony-compatibility
Closed

RobLoach wants to merge 2 commits into
mglaman:mainfrom
RobLoach:drush-symfony-compatibility

Conversation

@RobLoach

@RobLoach RobLoach commented Nov 5, 2026 •

Copy link
Copy Markdown

Fixes #420 by registering Drush's src-symfony-compatibility directory, so classes like DrushStyle are discovered.

The GitHub Actions failure is unrelated to this change.

@mglaman

mglaman commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Thanks for putting this together, and for the test proving it. I'm going to close this one.

Drush 12 is already listed as "compatible but no longer supported" for Drupal 10 in Drush's compatibility table. Drupal 10.2+ sites are supposed to be on Drush 13, and Drush 13.7.1+ loads DrushStyle without the compatibility autoloader. The sites left are on PHP 8.1 or 8.2, where Drush 13 can't install.

Mirroring Drush's preflight also means tracking its directory layout. Drush 14 only ships src-symfony-compatibility/v7, so the hardcoded v4/v6 here would silently load nothing there.

For projects that still support Drush 12, the bootstrap file you added to mcp_server is the right fix: a19d686d. I'll point people to it from #420.

@mglaman mglaman closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DrushStyle warnings with Drush 11

2 participants